#!/usr/bin/python2
import matplotlib.patches as patches 
import matplotlib.pyplot as plt 

t = int(input())
print ("###", t)
tri = [list(map(float, raw_input().split())) for i in range(t)]

x = []
y = []

for t in tri:
    x.extend([t[0], t[2], t[4], t[0], None])
    y.extend([t[1], t[3], t[5], t[1], None])

plt.plot(x, y)
plt.axis("equal")

plt.show() 

